<form action="{:request()->url()}" autocomplete="off" class="layui-form layui-card layui-form-pane" data-auto="true" method="post">
    <div class="layui-card-body padding-left-40">
        <div class="layui-form-item">
            <label class="layui-form-label">所属行业</label>
            <div class="layui-input-block">
                <select class='layui-select' name="industry_id" lay-search="">
                    <option value=''>-- 全部 --</option>
                    {foreach $industrys as $c}
                    {eq name='c.industry_id' value='$vo.industry_id|default=0'}
                    <option selected value='{$c.industry_id}'>{$c.industry_name}</option>
                    {else}
                    <option value='{$c.industry_id}'>{$c.industry_name}</option>
                    {/eq}{/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">绑定应用</label>
            <div class="layui-input-block">
                <select class='layui-select' name="app_id" lay-search="">
                    <option value=''>-- 全部 --</option>
                    {foreach $apps as $c}
                    {eq name='c.app_id' value='$vo.app_id|default=0'}
                    <option selected value='{$c.app_id}'>{$c.app_name}</option>
                    {else}
                    <option value='{$c.app_id}'>{$c.app_name}</option>
                    {/eq}{/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户昵称</label>
            <div class="layui-input-block">
                <input class="layui-input" name="user_nickname" required placeholder="请输入"  value='{$vo.user_nickname}'>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">账号</label>
            <div class="layui-input-block">
                <input class="layui-input"  disabled placeholder="请输入"  value='{$vo.user_name}'>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-block">
                <input class="layui-input" name="user_password" required placeholder="请输入"  value='{$vo.user_password}'>
            </div>
        </div>
    </div>
    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}
    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" data-close data-confirm="确定要取消编辑吗？" type='button'>取消编辑</button>
    </div>
</form>

